package com.zzx.demo.dao;

/**
 * 返回参数封装
 * @author zzx
 *
 */
public class RtnDataObject {
	public static final int SUCCESS = 00;
	public static final int ERROR = 02;
	public static final int WARNING = 99;
	private int status; //返回状态
	private String message; //返回信息
	private Object obj; //返回参数
	private String checkCode;
	
	public RtnDataObject(){}
	
	/**
	 * 
	 * @param status 返回状态 00 成功 02 错误 99 异常警告
	 */
	public RtnDataObject(int status){
		this.status = status;
	}
	/**
	 * 
	 * @param status 返回状态 00 成功 02 错误 99 异常警告
	 * @param msg  返回提示信息
	 */
	public RtnDataObject(int status,String msg){
		this.status = status;
		this.message = msg;
	}
	
	/**
	 * 
	 * @param status 返回状态 00 成功 02 错误 99 异常警告
	 * @param msg  返回提示信息
	 * @param obj 返回参数 Object 格式
	 */
	public RtnDataObject(int status,String msg,Object obj){
		this.status = status;
		this.message = msg;
		this.obj = obj;
	}
	/**
	 * 
	 * @param status 返回状态 00 成功 02 错误 99 异常警告
	 * @param msg  返回提示信息
	 * @param obj 返回参数 Object 格式
	 */
	public RtnDataObject(int status, String message, Object obj, String checkCode) {
		this.status = status;
		this.message = message;
		this.obj = obj;
		this.checkCode = checkCode;
	}

	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}
	public String getCheckCode() {
		return checkCode;
	}
	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}
	
	
}
